package com.leyou.search.service;

import com.leyou.common.vo.PageResult;
import com.leyou.item.dto.SpuDTO;
import com.leyou.search.dto.GoodsDTO;
import com.leyou.search.dto.SearchRequest;
import com.leyou.search.pojo.Goods;

import java.util.List;
import java.util.Map;

public interface SearchService {

    public Goods buildGoods(SpuDTO spu);

    PageResult<GoodsDTO> searchGoods(SearchRequest request);

    Map<String,List<?>> searchFiltrs(SearchRequest request);

    void saveGoodsToIndex(Long id);

    void delteGoodsFromIndex(Long id);
}
